package com.tianji.learning.service;

import com.tianji.common.domain.query.PageQuery;
import com.tianji.learning.domain.po.PointsBoard;
import com.baomidou.mybatisplus.extension.service.IService;
import com.tianji.learning.domain.query.PointsBoardQuery;
import com.tianji.learning.domain.vo.PointsBoardVO;

import java.util.List;

/**
 * <p>
 * 学霸天梯榜 服务类
 * </p>
 *
 * @author mxl
 * @since 2024-06-28
 */
public interface IPointsBoardService extends IService<PointsBoard> {

    /**
     * 查询赛季榜单
     * @param query 赛季信息以及分页信息
     * @return 指定赛季指定页的数据
     */
    PointsBoardVO queryPointsBoardList(PointsBoardQuery query);

    /**
     * 分页查询积分榜单信息
     * @param key redis榜单键
     * @param pageSize 页面大小
     * @param pageNo 页面号
     * @return
     */
    List<PointsBoard> queryMyCurrentBoard(String key, Integer pageSize, Integer pageNo);
}
